#include <building.h>
Public Member Functions | |
| building () | |
| building (int i, int l, char *m, int t, int s, int x, int z) | |
| void | destroyBuilding () |
| void | decreaseLife (int l) |
| void | newBuilding () |
| building::building | ( | ) |
Default constructor.
| building::building | ( | int | i, | |
| int | l, | |||
| char * | m, | |||
| int | t, | |||
| int | s, | |||
| int | x, | |||
| int | z | |||
| ) |
Constructor. Will create the building in the game world.
| object | id, life, model file name, texture id, size, x and z coordinates. |
| void building::decreaseLife | ( | int | l | ) |
Decriments the building's life by specified amount, and will destroy the building if life reaches zero.
| Amount | to decrease life by. |
| void building::destroyBuilding | ( | ) |
Removes the building frin the game world.
| void building::newBuilding | ( | ) |
Places the building in the game world.
1.5.8